package com.xof.phonecall

import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent

const val ACTION = "android.intent.action.BOOT_COMPLETED"

open class BootStartReceiver : BroadcastReceiver() {

    override fun onReceive(p0: Context?, p1: Intent?) {
        if (p1?.action.equals(ACTION)) {
            val intent = Intent(p0, SpalshActivity::class.java)
            intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
            p0?.startActivity(intent)
        }
    }

}